|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Tests for Compiler_Dataflow.H. More...
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) | |
Tests for Compiler_Dataflow.H.
Definition in file compiler_dataflow_test.cc.
| TEST | ( | CompilerDataflow | , |
| BranchFoldFalseTakesElseArm | |||
| ) |
Definition at line 749 of file compiler_dataflow_test.cc.
References Aleph::eliminate_dead_code(), Aleph::validate_dead_code_elimination(), and Aleph::validate_ir_function().
| TEST | ( | CompilerDataflow | , |
| BranchFoldPreservesLiveOutForTakenArm | |||
| ) |
Definition at line 710 of file compiler_dataflow_test.cc.
References Aleph::eliminate_dead_code(), Aleph::validate_dead_code_elimination(), and Aleph::validate_ir_function().
| TEST | ( | CompilerDataflow | , |
| ComputesReachabilityLivenessAndConstants | |||
| ) |
Definition at line 785 of file compiler_dataflow_test.cc.
References Aleph::analyze_dataflow_function(), Aleph::Compiler_IR_Function::blocks, Aleph::Compiler_IR_Function::local_slots, Aleph::validate_dataflow_analysis(), and Aleph::validate_ir_function().
| TEST | ( | CompilerDataflow | , |
| EliminatesDeadStoresAndConstantBranches | |||
| ) |
Definition at line 826 of file compiler_dataflow_test.cc.
References Aleph::eliminate_dead_code(), Aleph::validate_dead_code_elimination(), and Aleph::validate_ir_function().
| TEST | ( | CompilerDataflow | , |
| KeepsDeadArithmeticThatCanStopTheProgram | |||
| ) |
Definition at line 867 of file compiler_dataflow_test.cc.
References Aleph::DynArray< T >::append(), Aleph::Compiler_IR_Function::blocks, Aleph::compiler_ir_invalid_id(), Aleph::compiler_operator_name(), Aleph::eliminate_dead_code(), Aleph::Compiler_IR_Function::entry_block, Aleph::exit(), Aleph::Compiler_IR_Function::exit_block, Aleph::Compiler_IR_Slot::id, Aleph::Compiler_IR_Block::id, Aleph::Compiler_IR_Block::instructions, Aleph::Compiler_IR_Slot::kind, Aleph::Compiler_IR_Instruction::kind, Aleph::Compiler_IR_Terminator::kind, Aleph::Compiler_IR_Block::label, Aleph::Compiler_IR_Instruction::local_slot_id, Aleph::Compiler_IR_Function::local_slots, Aleph::Compiler_IR_Slot::name, Aleph::Compiler_IR_Function::name, Aleph::Compiler_IR_Function::next_value_id, Aleph::Compiler_IR_Instruction::op, Aleph::Compiler_IR_Instruction::operands, Aleph::Compiler_IR_Instruction::result_id, Aleph::Compiler_IR_Terminator::return_value, Aleph::Compiler_IR_Terminator::successors, Aleph::Compiler_IR_Block::terminator, Aleph::Compiler_IR_Instruction::text, Aleph::validate_dead_code_elimination(), Aleph::validate_ir_function(), and y.
| TEST | ( | CompilerDataflow | , |
| PreservesExitBlockWhenCompactingInfiniteLoop | |||
| ) |
Definition at line 848 of file compiler_dataflow_test.cc.
References Aleph::compiler_ir_invalid_id(), Aleph::eliminate_dead_code(), Aleph::validate_dead_code_elimination(), and Aleph::validate_ir_function().
| TEST | ( | CompilerDataflow | , |
| RebuildsPredecessorsForForwardMeets | |||
| ) |
Definition at line 814 of file compiler_dataflow_test.cc.
References Aleph::analyze_dataflow_function(), Aleph::Compiler_IR_Function::blocks, and Aleph::validate_dataflow_analysis().
| TEST | ( | CompilerDataflow | , |
| ReportsUninitializedLocalLoads | |||
| ) |
Definition at line 766 of file compiler_dataflow_test.cc.
References Aleph::analyze_dataflow_function(), Aleph::compiler_dump_dataflow_analysis(), Aleph::validate_dataflow_analysis(), and Aleph::validate_ir_function().
| TEST | ( | CompilerDataflowConstant | , |
| BinaryAddOverflowDoesNotFold | |||
| ) |
Definition at line 678 of file compiler_dataflow_test.cc.
| TEST | ( | CompilerDataflowConstant | , |
| BinaryDivLLONG_MINByMinusOneDoesNotFold | |||
| ) |
Definition at line 666 of file compiler_dataflow_test.cc.
| TEST | ( | CompilerDataflowConstant | , |
| BinaryModLLONG_MINByMinusOneDoesNotFold | |||
| ) |
Definition at line 672 of file compiler_dataflow_test.cc.
| TEST | ( | CompilerDataflowConstant | , |
| BinaryMulLLONG_MINByOneFoldsToLLONG_MIN | |||
| ) |
Definition at line 684 of file compiler_dataflow_test.cc.
| TEST | ( | CompilerDataflowConstant | , |
| BinaryMulOverflowDoesNotFold | |||
| ) |
Definition at line 691 of file compiler_dataflow_test.cc.
References r.
| TEST | ( | CompilerDataflowConstant | , |
| ParsesLLONG_MAX | |||
| ) |
Definition at line 619 of file compiler_dataflow_test.cc.
References value.
| TEST | ( | CompilerDataflowConstant | , |
| ParsesLLONG_MINString | |||
| ) |
Definition at line 626 of file compiler_dataflow_test.cc.
References value.
| TEST | ( | CompilerDataflowConstant | , |
| RejectsEmptyString | |||
| ) |
Definition at line 639 of file compiler_dataflow_test.cc.
References value.
| TEST | ( | CompilerDataflowConstant | , |
| RejectsOverflowAboveLLONG_MAX | |||
| ) |
Definition at line 633 of file compiler_dataflow_test.cc.
References value.
| TEST | ( | CompilerDataflowConstant | , |
| UnaryMinusLLONG_MINDoesNotFold | |||
| ) |
Definition at line 649 of file compiler_dataflow_test.cc.
| TEST | ( | CompilerDataflowConstant | , |
| UnaryMinusNormalIntegerFolds | |||
| ) |
Definition at line 655 of file compiler_dataflow_test.cc.