Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
compiler_dataflow_test.cc File Reference

Tests for Compiler_Dataflow.H. More...

#include <climits>
#include <gtest/gtest.h>
#include <Compiler_Dataflow.H>
Include dependency graph for compiler_dataflow_test.cc:

Go to the source code of this file.

Functions

 TEST (CompilerDataflowConstant, ParsesLLONG_MAX)
 
 TEST (CompilerDataflowConstant, ParsesLLONG_MINString)
 
 TEST (CompilerDataflowConstant, RejectsOverflowAboveLLONG_MAX)
 
 TEST (CompilerDataflowConstant, RejectsEmptyString)
 
 TEST (CompilerDataflowConstant, UnaryMinusLLONG_MINDoesNotFold)
 
 TEST (CompilerDataflowConstant, UnaryMinusNormalIntegerFolds)
 
 TEST (CompilerDataflowConstant, BinaryDivLLONG_MINByMinusOneDoesNotFold)
 
 TEST (CompilerDataflowConstant, BinaryModLLONG_MINByMinusOneDoesNotFold)
 
 TEST (CompilerDataflowConstant, BinaryAddOverflowDoesNotFold)
 
 TEST (CompilerDataflowConstant, BinaryMulLLONG_MINByOneFoldsToLLONG_MIN)
 
 TEST (CompilerDataflowConstant, BinaryMulOverflowDoesNotFold)
 
 TEST (CompilerDataflow, BranchFoldPreservesLiveOutForTakenArm)
 
 TEST (CompilerDataflow, BranchFoldFalseTakesElseArm)
 
 TEST (CompilerDataflow, ReportsUninitializedLocalLoads)
 
 TEST (CompilerDataflow, ComputesReachabilityLivenessAndConstants)
 
 TEST (CompilerDataflow, RebuildsPredecessorsForForwardMeets)
 
 TEST (CompilerDataflow, EliminatesDeadStoresAndConstantBranches)
 
 TEST (CompilerDataflow, PreservesExitBlockWhenCompactingInfiniteLoop)
 
 TEST (CompilerDataflow, KeepsDeadArithmeticThatCanStopTheProgram)
 

Detailed Description

Tests for Compiler_Dataflow.H.

Definition in file compiler_dataflow_test.cc.

Function Documentation

◆ TEST() [1/19]

TEST ( CompilerDataflow  ,
BranchFoldFalseTakesElseArm   
)

◆ TEST() [2/19]

TEST ( CompilerDataflow  ,
BranchFoldPreservesLiveOutForTakenArm   
)

◆ TEST() [3/19]

◆ TEST() [4/19]

TEST ( CompilerDataflow  ,
EliminatesDeadStoresAndConstantBranches   
)

◆ TEST() [5/19]

◆ TEST() [6/19]

TEST ( CompilerDataflow  ,
PreservesExitBlockWhenCompactingInfiniteLoop   
)

◆ TEST() [7/19]

TEST ( CompilerDataflow  ,
RebuildsPredecessorsForForwardMeets   
)

◆ TEST() [8/19]

TEST ( CompilerDataflow  ,
ReportsUninitializedLocalLoads   
)

◆ TEST() [9/19]

TEST ( CompilerDataflowConstant  ,
BinaryAddOverflowDoesNotFold   
)

Definition at line 678 of file compiler_dataflow_test.cc.

◆ TEST() [10/19]

TEST ( CompilerDataflowConstant  ,
BinaryDivLLONG_MINByMinusOneDoesNotFold   
)

Definition at line 666 of file compiler_dataflow_test.cc.

◆ TEST() [11/19]

TEST ( CompilerDataflowConstant  ,
BinaryModLLONG_MINByMinusOneDoesNotFold   
)

Definition at line 672 of file compiler_dataflow_test.cc.

◆ TEST() [12/19]

TEST ( CompilerDataflowConstant  ,
BinaryMulLLONG_MINByOneFoldsToLLONG_MIN   
)

Definition at line 684 of file compiler_dataflow_test.cc.

◆ TEST() [13/19]

TEST ( CompilerDataflowConstant  ,
BinaryMulOverflowDoesNotFold   
)

Definition at line 691 of file compiler_dataflow_test.cc.

References r.

◆ TEST() [14/19]

TEST ( CompilerDataflowConstant  ,
ParsesLLONG_MAX   
)

Definition at line 619 of file compiler_dataflow_test.cc.

References value.

◆ TEST() [15/19]

TEST ( CompilerDataflowConstant  ,
ParsesLLONG_MINString   
)

Definition at line 626 of file compiler_dataflow_test.cc.

References value.

◆ TEST() [16/19]

TEST ( CompilerDataflowConstant  ,
RejectsEmptyString   
)

Definition at line 639 of file compiler_dataflow_test.cc.

References value.

◆ TEST() [17/19]

TEST ( CompilerDataflowConstant  ,
RejectsOverflowAboveLLONG_MAX   
)

Definition at line 633 of file compiler_dataflow_test.cc.

References value.

◆ TEST() [18/19]

TEST ( CompilerDataflowConstant  ,
UnaryMinusLLONG_MINDoesNotFold   
)

Definition at line 649 of file compiler_dataflow_test.cc.

◆ TEST() [19/19]

TEST ( CompilerDataflowConstant  ,
UnaryMinusNormalIntegerFolds   
)

Definition at line 655 of file compiler_dataflow_test.cc.