Patrick Lühne
165f6ac059
This adds initial support for detecting integer variables in formulas. The scope is somewhat limited in that variables matching predicate parameters with known integer type aren’t propagated to be integer as well yet. Also, the use of constants and functions prevents variables from being detected as integer, because they have to be assumed to be externally defined in such a way that they evaluate to general values and not necessarily integers.
23 lines
593 B
C++
23 lines
593 B
C++
#ifndef __ANTHEM__INTEGER_VARIABLE_DETECTION_H
|
|
#define __ANTHEM__INTEGER_VARIABLE_DETECTION_H
|
|
|
|
#include <anthem/AST.h>
|
|
#include <anthem/Context.h>
|
|
|
|
namespace anthem
|
|
{
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// IntegerVariableDetection
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
void detectIntegerVariables(std::vector<ast::Formula> &completedFormulas);
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
}
|
|
|
|
#endif
|