Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rtfm-klee
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KLEE
rtfm-klee
Commits
3d592a89
Commit
3d592a89
authored
7 years ago
by
Per Lindgren
Browse files
Options
Downloads
Patches
Plain Diff
compiler-builtins
parent
8f4fb29f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
klee-examples/Xargo.toml
+6
-0
6 additions, 0 deletions
klee-examples/Xargo.toml
klee/src/lib.rs
+3
-7
3 additions, 7 deletions
klee/src/lib.rs
with
9 additions
and
7 deletions
klee-examples/Xargo.toml
0 → 100644
+
6
−
0
View file @
3d592a89
[dependencies.core]
stage
=
0
[dependencies.compiler_builtins]
features
=
[
"mem"
]
stage
=
1
\ No newline at end of file
This diff is collapsed.
Click to expand it.
klee/src/lib.rs
+
3
−
7
View file @
3d592a89
#![no_std]
#![feature(compiler_builtins_lib)]
#![feature(lang_items)]
extern
crate
compiler_builtins
;
extern
crate
cstr_core
;
extern
crate
cty
;
...
...
@@ -9,17 +11,11 @@ mod ll;
use
core
::
mem
;
use
cty
::
{
c_int
,
c_void
}
;
use
cty
::
c_void
;
#[doc(hidden)]
pub
use
cstr_core
::
CStr
;
//extern "C" fn memcmp(cx: *const c_void, ct: *const c_void, n: size_t) -> c_int {
#[no_mangle]
pub
fn
memcmp
(
_cx
:
*
const
c_void
,
_ct
:
*
const
c_void
,
_n
:
usize
)
->
c_int
{
::
abort
();
}
pub
fn
abort
()
->
!
{
unsafe
{
ll
::
abort
()
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment