forked from klee/klee
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Return confidence and give advise
- Loading branch information
Showing
23 changed files
with
496 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//===-- TargetedExecutionReporter.h ------------------------------*- C++ -*-===// | ||
// | ||
// The KLEE Symbolic Virtual Machine | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef KLEE_TARGETEDEXECUTIONREPORTER_H | ||
#define KLEE_TARGETEDEXECUTIONREPORTER_H | ||
|
||
#include "klee/Module/Locations.h" | ||
|
||
namespace klee { | ||
|
||
namespace confidence { | ||
using ty = double; | ||
static ty MinConfidence = 0.0; | ||
static ty MaxConfidence = 100.0; | ||
static ty Confident = 90.0; | ||
static ty VeryConfident = 99.0; | ||
bool isConfident(ty conf); | ||
bool isVeryConfident(ty conf); | ||
bool isNormal(ty conf); | ||
std::string toString(ty conf); | ||
ty min(ty left, ty right); | ||
}; | ||
|
||
void reportFalsePositive( | ||
confidence::ty confidence, | ||
LocatedEvent &event, | ||
std::string whatToIncrease); | ||
|
||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.