Skip to content

Commit ca4f797

Browse files
authored
Merge pull request #14050 from milseman/proof_is_trivial
2 parents 53b6acf + e909a3c commit ca4f797

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/single-source/Calculator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func my_atoi_impl(_ input : String) -> Int {
3939
public func run_Calculator(_ N: Int) {
4040
var c = 0
4141
for _ in 1...N*5000 {
42-
c += my_atoi_impl("10")
42+
c += my_atoi_impl(identity("10"))
4343
}
4444
CheckResults(c == 0)
4545
}

benchmark/single-source/OpenClose.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func check_state(_ state : MyState) -> Int {
3434
public func run_OpenClose(_ N: Int) {
3535
var c = 0
3636
for _ in 1...N*10000 {
37-
c += check_state(MyState.Closed)
37+
c += check_state(identity(MyState.Closed))
3838
}
3939
CheckResults(c == 0)
4040
}

0 commit comments

Comments
 (0)