repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
ftsrg/gazer
include/gazer/ADT/ScopedCache.h
<reponame>ftsrg/gazer //==- ScopedCache.h ---------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy...
ftsrg/gazer
test/verif/regression/unsigned_false_cex.c
// RUN: %bmc -no-optimize -math-int -trace -test-harness %t1.ll "%s" // RUN: %check-cex "%s" "%t1.ll" "%errors" | FileCheck "%s" // RUN: %bmc -math-int -trace -test-harness %t3.ll "%s" // RUN: %check-cex "%s" "%t3.ll" "%errors" | FileCheck "%s" // CHECK: __VERIFIER_error executed // Due to an erroneous encoding of u...
ftsrg/gazer
include/gazer/Core/Expr/ExprWalker.h
//==- ExprWalker.h - Expression visitor interface ---------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/theta/verif/base/uninitialized_var_false.c
<filename>test/theta/verif/base/uninitialized_var_false.c // RUN: %theta -no-optimize -memory=havoc "%s" | FileCheck "%s" // RUN: %theta -memory=havoc "%s" | FileCheck "%s" // CHECK: Verification FAILED // This test checks that the enabled LLVM optimizations do not // strip away relevant code under an undefined valu...
ftsrg/gazer
test/verif/regression/expr_simplify_invalid.c
// RUN: %bmc "%s" | FileCheck "%s" // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} // Due to an erroneous expression rewrite transformation, this // test has produced an invalid counterexample. int b, c, d, e, g; void __VERIFIER_error(); int a(); int f() { a(f, d, e, 0, 0); return 0; } int h() { a(g, d,...
ftsrg/gazer
test/verif/regression/crash_on_long.c
// RUN: %bmc -checks=signed-overflow "%s" | FileCheck "%s" // CHECK: Verification SUCCESSFUL void a() __attribute__((__noreturn__)); int b() { int c; if (c - 4L) ; a(); } int main() { b(); }
ftsrg/gazer
include/gazer/LLVM/Instrumentation/Check.h
<gh_stars>1-10 //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
ftsrg/gazer
test/theta/verif/memory/passbyref5.c
// REQUIRES: memory.burstall // RUN: %theta "%s" | FileCheck "%s" // CHECK: Verification SUCCESSFUL int __VERIFIER_nondet_int(void); void __VERIFIER_error(void) __attribute__((__noreturn__)); void sumprod(int* a, int* b, int *sum, int *prod) { *sum = *a + *b; *prod = *a * *b; } int main(void) { int a = ...
ftsrg/gazer
test/errors.c
// A simple basic implementation of common error functions // to reproduce counterexamples targeting assertion failures. #include <stdlib.h> #include <stdio.h> void __assert_fail(void) { fprintf(stdout, "__assert_fail executed\n"); exit(0); } void __VERIFIER_error(void) { fprintf(stdout, "__VERIFIER_erro...
ftsrg/gazer
test/verif/regression/invalid_bmc_inline.c
// RUN: %bmc "%s" | FileCheck "%s" // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} // Due to an erroneous encoding of input assignments during BMC inlining, // this test yielded a false positive result. int c, d, e, f, h, i; void __VERIFIER_error(); int a(); int b(); int g() { b(0, e, f, 0, 0); return 0; }...
ftsrg/gazer
test/theta/cfa/counter.c
<filename>test/theta/cfa/counter.c // RUN: %theta -model-only "%s" -o "%t" // RUN: cat "%t" | /usr/bin/diff -B -Z "%p/Expected/counter.theta" - #include <assert.h> int __VERIFIER_nondet_int(); int main(void) { int sum = 0; int x = __VERIFIER_nondet_int(); for (int i = 0; i < x; ++i) { sum += 1; ...
ftsrg/gazer
include/gazer/LLVM/Memory/MemoryObject.h
<filename>include/gazer/LLVM/Memory/MemoryObject.h //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
ftsrg/gazer
test/theta/verif/overflow/overflow_loops.c
<gh_stars>1-10 // RUN: %theta -checks=signed-overflow "%s" | FileCheck "%s" // CHECK: Verification FAILED // CHECK: Signed integer overflow int __VERIFIER_nondet_int(); int main(void) { int x = 1; int y = 1; while (1) { x = x * 2 * __VERIFIER_nondet_int(); y = y * 3 * __VERIFIER_nondet_i...
ftsrg/gazer
include/gazer/Core/Expr/ExprRewrite.h
<reponame>ftsrg/gazer //==- ExprRewrite.h ---------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy...
ftsrg/gazer
include/gazer/ADT/Algorithm.h
<gh_stars>1-10 //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
ftsrg/gazer
test/verif/regression/eval_error_fail.c
// RUN: %bmc -bound 1 -inline=all -trace "%s" | FileCheck "%s" // CHECK: Verification FAILED // This test caused trace generation to crash due to an invalid null pointer. int c; void __VERIFIER_error(); int a(); int b(); int d() { b(); __VERIFIER_error(); return 0; } int b() { return c; } int main() { int e ...
ftsrg/gazer
include/gazer/Support/DenseMapKeyInfo.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/Trace/Trace.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/Automaton/CallGraph.h
<gh_stars>1-10 //==- CallGraph.h - Call graph interface for CFAs ---------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
ftsrg/gazer
test/verif/memory/arrays1.c
<gh_stars>1-10 // RUN: %bmc -bound 10 "%s" | FileCheck "%s" // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} int __VERIFIER_nondet_int(void); void __VERIFIER_error(void) __attribute__((__noreturn__)); int main(void) { int x[5]; for (int i = 0; i < 5; ++i) { x[i] = i + 1; } if (x[0] == 0...
ftsrg/gazer
test/verif/memory/structs2.c
// RUN: %bmc -bound 1 -memory=flat "%s" | FileCheck "%s" // By default we assume that unknown external functions do not clobber memory objects. // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} // MODIFY: Verification FAILED int __VERIFIER_nondet_int(void); void __VERIFIER_error(void) __attribute__((__noreturn__...
ftsrg/gazer
include/gazer/LLVM/Transform/UndefToNondet.h
<filename>include/gazer/LLVM/Transform/UndefToNondet.h<gh_stars>1-10 //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compli...
ftsrg/gazer
include/gazer/Core/Type.h
<reponame>ftsrg/gazer //==- Type.h - Gazer expression types ---------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy...
ftsrg/gazer
include/gazer/Automaton/CfaUtils.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/Core/Valuation.h
<reponame>ftsrg/gazer //==- Valuation.h -----------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy...
ftsrg/gazer
include/gazer/LLVM/ClangFrontend.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/verif/regression/floats/fp_if_not_inlined.c
<gh_stars>1-10 // This test failed if gazer-bmc was invoked without the "-inline=all" flag. // The underlying issue was that the translation process did not handle PHI nodes correctly when jumping out of loops. // RUN: %bmc -bound 10 -inline=all "%s" | FileCheck "%s" // RUN: %bmc -bound 10 "%s" | FileCheck "%s" // CH...
ftsrg/gazer
test/theta/verif/memory/local_passbyref1_fail.c
// REQUIRES: memory.burstall // RUN: %theta "%s" | FileCheck "%s" // CHECK: Verification FAILED void __VERIFIER_error(void) __attribute__((__noreturn__)); void klee_make_symbolic(void* ptr, unsigned siz, const char* name); int main(void) { int x; klee_make_symbolic(&x, sizeof(x), "x"); if (x == 0) { ...
ftsrg/gazer
test/verif/floats/float_cast4_fail.c
// RUN: %bmc -bound 1 "%s" | FileCheck "%s" // CHECK: Verification FAILED #include <assert.h> float __VERIFIER_nondet_float(void); int main(void) { double x = __VERIFIER_nondet_float(); assert(x != 150.0); return 0; }
ftsrg/gazer
include/gazer/Core/Expr/Matcher.h
<reponame>ftsrg/gazer<gh_stars>1-10 //==- Matcher.h - A pattern matcher for expressions -------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may...
ftsrg/gazer
include/gazer/Support/GrowingStackAllocator.h
<reponame>ftsrg/gazer //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy...
ftsrg/gazer
test/verif/base/simple_struct_as_tuple.c
// RUN: %bmc -bound 1 -Wno-int-conversion "%s" | FileCheck "%s" // RUN: %bmc -bound 1 -no-optimize -Wno-int-conversion "%s" | FileCheck "%s" // CHECK: Verification SUCCESSFUL struct { long d; long e; } typedef f; struct { } typedef g; typedef struct h i; f j(k) { f l; return l; } long m(n, o) { f frequency;...
ftsrg/gazer
test/theta/verif/memory/passbyref7_fail.c
<gh_stars>1-10 // REQUIRES: memory.burstall // RUN: %theta "%s" | FileCheck "%s" // CHECK: Verification FAILED int __VERIFIER_nondet_int(void); void __VERIFIER_error(void) __attribute__((__noreturn__)); void sumprod(int a, int b, int *sum, int *prod) { *sum = a + b; *prod = a * b; } int main(void) { int...
ftsrg/gazer
include/gazer/LLVM/Memory/MemorySSA.h
<reponame>ftsrg/gazer<gh_stars>1-10 //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may...
ftsrg/gazer
tools/gazer-theta/lib/ThetaCfaGenerator.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/LLVM/Automaton/InstToExpr.h
<gh_stars>1-10 //==- InstToExpr.h - Translate LLVM IR to expressions -----------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
ftsrg/gazer
test/verif/regression/verifier_error_only.c
// RUN: %bmc -bound 1 -trace -memory=flat "%s" | FileCheck "%s" // CHECK: Verification FAILED void __VERIFIER_error(); int main() { __VERIFIER_error(); }
ftsrg/gazer
test/verif/regression/nested_loop_exit.c
// RUN: %bmc "%s" | FileCheck "%s" // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} int main() { int a; while (1) { int b, c; while (1) { if (c) goto d; if (b) while (1) ; } d: if (a) goto e; } e:; }
ftsrg/gazer
include/gazer/LLVM/Instrumentation/DefaultChecks.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/LLVM/LLVMFrontend.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/verif/regression/error_block_br.c
// RUN: %bmc -bound 1 "%s" | FileCheck "%s" // CHECK: Verification FAILED // This test makes sure that even if a unifyFunctionExitNodes pass was run, // the error block detection in ModuleToAutomata works well. void __VERIFIER_error(); void exit(); int a; int b(c) { if (a) exit(0); __VERIFIER_error(); re...
ftsrg/gazer
tools/gazer-bmc/Verifier/BoundedModelCheckerImpl.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/Core/Expr.h
//==- Expr.h - Core expression classes --------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/LLVM/Memory/ValueOrMemoryObject.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/theta/verif/base/loops1.c
<filename>test/theta/verif/base/loops1.c // RUN: %theta -memory=havoc "%s" | FileCheck "%s" // CHECK: Verification SUCCESSFUL extern int __VERIFIER_nondet_int(void); int calculate(int x) { int aggr = 0, aggr2 = x; int i = 0, j = 0; while (i < x) { aggr = aggr + i; while (j < x / 2) { ...
ftsrg/gazer
test/theta/verif/overflow/overflow_simple.c
// RUN: %theta -checks=signed-overflow "%s" | FileCheck "%s" // CHECK: Verification FAILED int __VERIFIER_nondet_int(); int main(void) { int x = __VERIFIER_nondet_int(); int y = __VERIFIER_nondet_int(); // CHECK: Signed integer overflow in {{.*}}overflow_simple.c at line [[# @LINE + 1]] column 14 re...
ftsrg/gazer
include/gazer/Core/ExprTypes.h
<filename>include/gazer/Core/ExprTypes.h //==- ExprTypes.h - Expression subclass implementations ---------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // Yo...
ftsrg/gazer
include/gazer/ADT/StringUtils.h
<filename>include/gazer/ADT/StringUtils.h<gh_stars>1-10 //==- StringUtils.h ---------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
ftsrg/gazer
test/theta/verif/memory/globals1.c
// RUN: %theta "%s" | FileCheck "%s" // CHECK: Verification SUCCESSFUL int __VERIFIER_nondet_int(void); void __VERIFIER_error(void) __attribute__((__noreturn__)); int a = 0, b = 1; int main(void) { a = __VERIFIER_nondet_int(); b = a + 1; if (a > b) { __VERIFIER_error(); } return 0; }
ftsrg/gazer
include/gazer/Trace/Location.h
<reponame>ftsrg/gazer //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy...
ftsrg/gazer
include/gazer/LLVM/Instrumentation/Intrinsics.h
<gh_stars>1-10 //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
ftsrg/gazer
include/gazer/Core/Solver/Model.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
src/LLVM/Transform/TransformUtils.h
<gh_stars>1-10 //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
ftsrg/gazer
scripts/portfolio/test-tasks/zerodiv_example.c
#include <stdio.h> extern int ioread32(void); int main(void) { int k = ioread32(); int i = 0; int j = k + 5; while (i < 3) { i = i + 1; j = j + 3; } k = k / (i - j); printf("%d\n", k); return 0; }
ftsrg/gazer
test/verif/regression/multiple_inf_loop.c
<reponame>ftsrg/gazer<gh_stars>1-10 // RUN: %bmc "%s" | FileCheck "%s" // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} // This test failed due to an erroneous handling of LLVM's loop information // in the ModuleToAutomataPass long a; int c() { int b; for (; b;) a = b; return a; } int main() { c(); ...
ftsrg/gazer
test/verif/regression/math_int1_fail.c
// RUN: %bmc -bound 1 -math-int "%s" | FileCheck "%s" // CHECK: Verification FAILED int a, b = 5; void __VERIFIER_error(); int main() { while (1) { if (b == 5 || b == 6) b = a = 4; if (a) __VERIFIER_error(); } }
ftsrg/gazer
include/gazer/Support/Math.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/verif/regression/floats/float_trace_crash.c
// RUN: %bmc -trace "%s" | FileCheck "%s" // CHECK: Verification FAILED int b; void __VERIFIER_error(); float a(); int main() { float c = a(); b = c != c; // CHECK: b := 0 if (!b) __VERIFIER_error(); }
ftsrg/gazer
test/verif/floats/float_mul_fail.c
<filename>test/verif/floats/float_mul_fail.c // RUN: %bmc -bound 1 "%s" | FileCheck "%s" // CHECK: Verification FAILED extern void __VERIFIER_error(void); extern float __VERIFIER_nondet_float(void); extern double __VERIFIER_nondet_double(void); int main(void) { float x = __VERIFIER_nondet_float(); float y = _...
ftsrg/gazer
src/SolverZ3/Z3SolverImpl.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/ADT/Graph.h
<gh_stars>1-10 //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
ftsrg/gazer
test/theta/verif/base/loops3_fail.c
// RUN: %theta -no-optimize -memory=havoc "%s" | FileCheck "%s" // CHECK: Verification FAILED #include <assert.h> extern int __VERIFIER_nondet_int(void); int main(void) { int i = 0; int n1 = __VERIFIER_nondet_int(); int n2 = __VERIFIER_nondet_int(); int sum = 0; while (i < n1) { sum = su...
ftsrg/gazer
test/verif/base/loops_multi_break_fail.c
<reponame>ftsrg/gazer // RUN: %bmc -bound 10 "%s" | FileCheck "%s" // CHECK: Verification FAILED #include <assert.h> extern int __VERIFIER_nondet_int(void); int main(void) { int i = 0; int n = __VERIFIER_nondet_int(); int x = __VERIFIER_nondet_int(); int sum = 0; int prod = 0; for (int i = 0...
ftsrg/gazer
test/verif/base/verifier_assume.c
<filename>test/verif/base/verifier_assume.c // RUN: %bmc "%s" | FileCheck "%s" // CHECK: Verification {{(SUCCESSFUL|BOUND REACHED)}} int __VERIFIER_nondet_int(void); void __VERIFIER_assume(int); void __VERIFIER_error(void) __attribute__((__noreturn__)); int main() { int y = __VERIFIER_nondet_int(); __VERIFI...
ftsrg/gazer
include/gazer/LLVM/LLVMTraceBuilder.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/theta/verif/base/main_no_assert.c
// RUN: %theta -memory=havoc "%s" | FileCheck "%s" // CHECK: Verification SUCCESSFUL int __VERIFIER_nondet_int(void); int main(void) { int x = __VERIFIER_nondet_int(); if (x > 0) { return 0; } return 1; }
ftsrg/gazer
include/gazer/Core/ExprRef.h
//==- Expr.h - Core expression classes --------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/Core/Decl.h
//==- Expr.h - Core expression classes --------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/LLVM/Transform/Passes.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/verif/base/simple_fail.c
<gh_stars>1-10 // RUN: %bmc -bound 1 "%s" | FileCheck "%s" // CHECK: Verification FAILED #include <assert.h> int main(void) { int a; a = 1; a = -1; assert(a != -1); }
ftsrg/gazer
test/theta/verif/memory/structs1.c
// REQUIRES: memory.structs // RUN: %theta "%s" | FileCheck "%s" // CHECK: Verification FAILED int __VERIFIER_nondet_int(void); void __VERIFIER_error(void) __attribute__((__noreturn__)); void make_symbolic(void* ptr); typedef struct X { int a; int b; } X; int main(void) { X x; int a = __VERIFIER_no...
ftsrg/gazer
include/gazer/Trace/TraceWriter.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/LLVM/Automaton/SpecialFunctions.h
<filename>include/gazer/LLVM/Automaton/SpecialFunctions.h //==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with t...
ftsrg/gazer
include/gazer/ADT/Iterator.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/LLVM/Memory/MemoryModel.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
src/Core/GazerContextImpl.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
src/LLVM/Automaton/FunctionToCfa.h
//==-------------------------------------------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
include/gazer/Core/Solver/Solver.h
<filename>include/gazer/Core/Solver/Solver.h //==- Solver.h - SMT solver interface ---------------------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. /...
ftsrg/gazer
include/gazer/Core/GazerContext.h
//==- GazerContext.h - Lifetime management for gazer objects ----*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // ...
ftsrg/gazer
test/verif/regression/inline_fail.c
<filename>test/verif/regression/inline_fail.c // RUN: %bmc -bound 10 -math-int "%s" | FileCheck "%s" // RUN: %bmc -bound 10 -math-int "%s" | FileCheck "%s" // CHECK: Verification FAILED int a, b; int c(f) { if (f) { b = 3; return 3; } if (b) a = e(); } int e() { if (a) __VERIFIER_error(); } ...
ftsrg/gazer
include/gazer/Core/Expr/ExprBuilder.h
<gh_stars>1-10 //==- ExprBuilder.h - Expression builder interface --------------*- C++ -*--==// // // Copyright 2019 Contributors to the Gazer project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the...
LazyPanda07/CleanCustomBuildSteps
CleanCustomBuildSteps/src/Global.h
<reponame>LazyPanda07/CleanCustomBuildSteps #pragma once #include <string_view> #include <vector> namespace globals { inline std::vector<std::string_view> arguments; }
LazyPanda07/CleanCustomBuildSteps
CleanCustomBuildSteps/src/Commands/EraseFilesByTypeCommand.h
<filename>CleanCustomBuildSteps/src/Commands/EraseFilesByTypeCommand.h<gh_stars>0 #pragma once #include "ICommand.h" namespace commands { class EraseFilesByTypeCommand : public ICommand { public: EraseFilesByTypeCommand() = default; void run(std::string_view path) const override; ~EraseFilesByTypeCommand()...
LazyPanda07/CleanCustomBuildSteps
CleanCustomBuildSteps/src/Commands/ICommand.h
#pragma once #include <string_view> namespace commands { class ICommand { public: ICommand() = default; virtual void run(std::string_view path) const = 0; virtual ~ICommand() = default; }; }
LazyPanda07/CleanCustomBuildSteps
CleanCustomBuildSteps/src/Commands/EraseFileCommand.h
<filename>CleanCustomBuildSteps/src/Commands/EraseFileCommand.h #pragma once #include "ICommand.h" namespace commands { class EraseFileCommand : public ICommand { public: EraseFileCommand() = default; void run(std::string_view path) const override; ~EraseFileCommand() = default; }; }
peroff/8-Bit-Tea-Party
Science/Questions/06 Input data to dynamic memory.c
#include <stdio.h> #include <stdlib.h> #include <string.h> // Вещание на канале 8-Bit-Tea-Party. /* rerum: Написать программу, которая осуществляет считывание введенных данных, * определяет их тип и сохраняет в виде массива данных. Результатом работы программы * является вывод на экран размера массива и о...
peroff/8-Bit-Tea-Party
Science/main.c
<reponame>peroff/8-Bit-Tea-Party<gh_stars>10-100 #include <stdio.h> #include <stdlib.h> #include <limits.h> #include <float.h> int power(int base, int n) { int r = 1; for (int i = 1; i <= n; ++i) r = r * base; return r; } float celsius(int fahr) { float r = (5.0 / 9.0) * (fahr - 32); retur...
peroff/8-Bit-Tea-Party
Science/Questions/07 Playing with factorial and recursion.c
#include <stdio.h> #include <limits.h> // Вещание на канале 8-Bit-Tea-Party. /* rerum: Написать программу, которая проверят является ли введенное значение факториалом, если это так, то вывести факториалом какого числа. Программа должна иметь примитивное «меню». Пользователю должно быть предложено: Нахожде...
mingduo/Masonry
MasonryDemo/MasonryDemo/UserMarginView.h
// // UserMarginView.h // MasonryDemo // // Created by Mr.LuDashi on 16/5/4. // Copyright © 2016年 zeluli. All rights reserved. // #import <UIKit/UIKit.h> @interface UserMarginView : UIView @end
mingduo/Masonry
MasonryDemo/MasonryDemo/BasicAnimatedView.h
<reponame>mingduo/Masonry<filename>MasonryDemo/MasonryDemo/BasicAnimatedView.h // // BasicAnimatedView.h // MasonryDemo // // Created by Mr.LuDashi on 16/5/3. // Copyright © 2016年 zeluli. All rights reserved. // #import <UIKit/UIKit.h> @interface BasicAnimatedView : UIView @end
mingduo/Masonry
MasonryDemo/MasonryDemo/SubViewController.h
<reponame>mingduo/Masonry // // SubViewController.h // MasonryDemo // // Created by ZeluLi on 16/5/2. // Copyright © 2016年 zeluli. All rights reserved. // #import <UIKit/UIKit.h> @interface SubViewController : UIViewController - (instancetype)initWithTitle:(NSString *)title viewClass:(Class)viewClass; @end
mingduo/Masonry
MasonryDemo/MasonryDemo/DistributeView.h
<reponame>mingduo/Masonry<gh_stars>0 // // DistributeView.h // MasonryDemo // // Created by Mr.LuDashi on 16/5/4. // Copyright © 2016年 zeluli. All rights reserved. // #import <UIKit/UIKit.h> @interface DistributeView : UIView @end
mingduo/Masonry
MasonryDemo/MasonryDemo/MasonryTableViewController.h
// // MasonryTableViewController.h // MasonryDemo // // Created by ZeluLi on 16/5/2. // Copyright © 2016年 zeluli. All rights reserved. // #import <UIKit/UIKit.h> @interface MasonryTableViewController : UITableViewController @end
willmexe/opuntiaOS
kernel/include/platform/generic/vmm/pde.h
#ifdef __i386__ #include <platform/x86/vmm/pde.h> #elif __arm__ #include <platform/aarch32/vmm/pde.h> #endif
willmexe/opuntiaOS
libs/libc/include/shadow.h
<filename>libs/libc/include/shadow.h #ifndef _LIBC_SHADOW_H #define _LIBC_SHADOW_H #include <sys/cdefs.h> #include <sys/types.h> __BEGIN_DECLS struct spwd { char* sp_namp; char* sp_pwdp; int sp_lstchg; int sp_min; int sp_max; int sp_warn; int sp_inact; int sp_expire; uint32_t sp_f...
willmexe/opuntiaOS
kernel/kernel/fs/procfs/sysctl.c
<filename>kernel/kernel/fs/procfs/sysctl.c<gh_stars>0 /* * Copyright (C) 2020-2022 The opuntiaOS Project Authors. * + Contributed by <NAME> <<EMAIL>> * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <fs/procfs/procfs.h> #include <fs/vfs.h> #incl...
willmexe/opuntiaOS
kernel/kernel/drivers/x86/bga.c
<filename>kernel/kernel/drivers/x86/bga.c /* * Copyright (C) 2020-2022 The opuntiaOS Project Authors. * + Contributed by <NAME> <<EMAIL>> * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <drivers/driver_manager.h> #include <drivers/x86/bga.h> #i...
willmexe/opuntiaOS
libs/libc/include/sys/_types/_ints.h
<filename>libs/libc/include/sys/_types/_ints.h #ifndef _LIBC_SYS__TYPES__INTS_H #define _LIBC_SYS__TYPES__INTS_H #include <bits/types.h> #ifndef __stdints_defined #define __stdints_defined typedef __int8_t int8_t; typedef __int16_t int16_t; typedef __int32_t int32_t; typedef __int64_t int64_t; typedef __uint8_t uint8...
willmexe/opuntiaOS
libs/libc/init/_lib.c
<gh_stars>100-1000 int errno; char** environ; int __environ_malloced = 0; extern int _stdio_init(); extern int _stdio_deinit(); extern int _malloc_init(); void _libc_init(int argc, char* argv[], char* envp[]) { environ = envp; _malloc_init(); _stdio_init(); extern void (*__init_array_start[])(int, cha...
willmexe/opuntiaOS
libs/libipc/include/libipc/Message.h
#pragma once #include <sys/types.h> #include <vector> typedef std::vector<uint8_t> EncodedMessage; typedef int message_key_t; class Message { public: Message() = default; virtual ~Message() = default; virtual int decoder_magic() const { return 0; } virtual int id() const { return 0; } virtual mes...